/**
 * @LoginMediator.as
 * 
 * @author sodaChen mail:asframe@163.com
 * @version 1.0
 * <br>Copyright (C), 2012 ASFrame.com
 * <br>This program is protected by copyright laws.
 * <br>Program Name:ASFrame AStruts2
 * <br>Date:2012-5-14
 */
package com.asframe.astruts2.example
{
	import com.asframe.log4a.Logger;
	import com.asframe.pattern.observer.IObserver;

	/**
	 *
	 * @author sodaChen
	 * @Date:2012-5-14
	 */
	public class LoginMediator implements IObserver
	{
		/** 打开登陆界面 **/
		[Notice]
		public static const OPEN_LOGIN:String = "openLogin";
		
		public static const CLOSE_LOGIN:String = "closeLogin";
		
		[Notice]
		public static const UPDATA:String = "updata";
		
		public static const UPDATA_METHOD:String = "updataMethod";
		
		public static const NOTICE:String = "notice";
		
		/** 登陆界面 **/
		public var loginView:LoginView;
		
		[Ref]
		public var astruts:String;
		
		public function LoginMediator()
		{
		}
		public function notice(obj:Object,num:Number,age:int):void
		{
//			Logger.debug(this,typeof(obj) + num + " " + age);
		}
		public function replyNotice(notice:*,args:* = null):void
		{
//			Logger.debug(this,notice + " 更新数据啦" + args + " -" + loginView);
		}
		public function openLogin(name:String):void
		{
//			Logger.debug(this,name + "打开了登陆界面" + loginView);
		}
		
		[Notice]
		public function closeLogin(name:String):void
		{
//			Logger.debug(this,name + "关闭了登陆界面" + loginView);
//			Logger.debug(this,"astruts:" + astruts);
		}
	}
}
